package xyz.chaobei.thread.callback;

import java.util.concurrent.Callable;

/**
 * @copyright (C), 2015-2020
 * @fileName: Task
 * @author: MRC
 * @date: 2021/1/28 22:38
 * @description:
 */
public class Task implements Callable<String> {

    @Override
    public String call() throws Exception {

        // 模拟处理一秒钟
        Thread.sleep(1000);

        return "hello world";
    }
}
